package com.wanxi.web.controller;

import com.wanxi.enterprise.api.result.CommonResult;
import com.wanxi.enterprise.api.vo.LocateApplyAddInVo;
import com.wanxi.web.service.enterprise.EnterpriseWebService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * ClassName: EnterpriseEnterController
 * Description: 商家入驻申请
 * date: 2022/1/14 11:11
 *
 * @author lxl
 * @version 1.0
 * @since JDK 1.8
 */

@Api(tags = "商家入驻申请")
@RestController
@RequestMapping("enterprises/enter")
public class EnterpriseEnterController {

    @Resource
    private EnterpriseWebService enterpriseWebService;

    /**
     * @Author jinfang
     * @Description // 商家申请入驻，输入入驻资料，添加商家资料到入驻申请表
     **/
    @ApiOperation("商家申请入驻")
    @PostMapping("enterprise/addApply")
   public CommonResult addApply(LocateApplyAddInVo locateApplyAddInVo){

       return enterpriseWebService.addApply(locateApplyAddInVo);
    }

}
